Skip to content

Fix docs search #3150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2025
Merged

Fix docs search #3150

merged 2 commits into from
Jun 19, 2025

Conversation

AmirhosseinPoolad
Copy link
Contributor

Updated the docs' python dependencies to fix the searching issues. Also had to fork one of the dependencies myself:

https://github.com/AmirhosseinPoolad/sphinxcontrib-domaintools

More information can be read in the commit messages.

@github-actions github-actions bot added docs Documentation lang-python Python code labels Jun 18, 2025
@AmirhosseinPoolad
Copy link
Contributor Author

AmirhosseinPoolad commented Jun 18, 2025

This worked fine locally but it seems to be that ReadTheDocs hijacks the sphinx search text-box (which works!) for their own search tool that doesn't work. Labeling the PR as WIP until I find a fix.

@AmirhosseinPoolad AmirhosseinPoolad changed the title Fix docs search [WIP] Fix docs search Jun 18, 2025
@AmirhosseinPoolad
Copy link
Contributor Author

At least until 2023, ReadTheDocs did not generate search indices for PR builds. This is also supported by the fact that the docs build for this PR took 3 minutes vs 10 minutes for the master branch.

Unfortunately this all means that I have no way of testing if the search will actually work on the hosted docs or not. It does work locally though.

@SamuelHo10
Copy link
Contributor

@AmirhosseinPoolad AmirhosseinPoolad changed the title [WIP] Fix docs search Fix docs search Jun 19, 2025
Previous doc/README told users to install sphinx
globally using the distribution's package manager.
This commit changes that to only tell users to use
pip and optionally make a python virtual environment.
Update Sphinx version used for docs from 6 to 8.2.3 to fix the search
issues. Also forked the sphinxcontrib-domaintools dependency to fix a
RuntimeError with python versions higher than 3.7
Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AmirhosseinPoolad AmirhosseinPoolad merged commit 141ab41 into master Jun 19, 2025
4 checks passed
@AmirhosseinPoolad AmirhosseinPoolad deleted the fix_docs_search branch June 19, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation lang-python Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants